import * as actionTypes from "./actionTypes";
import { fromJS } from "immutable"; //把数据转为immutable对象，使用这个使用更要使用gget方法，使用set方法去变更state内容
import start from '../../../static/img/start.png'; 
const imgList = [start];
const defaultState = fromJS({
  imgList,
});
// 导出一个纯函数
export default (state = defaultState, action) => {
  switch (action.type) {
    case actionTypes.getStartImg:
      console.log(1, action.data)
      return state.set("userInfor", action.data);
    default:
      break;
  }
  return state;
};
